<div id="postform">
<?php
$attr = array("id" => "postform");
echo form_open("site/post", $attr);
echo form_fieldset("发布留言");
echo '<div id="error">';
echo validation_errors();
echo '</div>';
echo '<p>';
echo form_label("名字：", "name");
echo form_input("name");
echo '</p><p>';
echo form_label("邮箱：", "email");
echo form_input("email");
echo '</p><p>';
echo form_textarea("content");
echo '</p><p>';
echo form_submit("submit", "提交");
echo '</p>';
echo form_fieldset_close();
echo form_close();
?>
</div>